#define _CRT_SECURE_NO_WARNINGS 1
#include <iostream>
using namespace std;

class Date
{
public:
	Date(int year = 1, int month = 1, int day = 1)
	{
		_year = year;
		_month = month;
		_day = day;
	}
	int GetYearDay(int year,int month)
	{
		int ArrayYearDay[13] = { -1,31,28,31,30,31,30,31,31,30,31,30,31 };
		if (month == 2 && (year % 4 == 0 && year % 100 != 0) || (year % 400 == 0))
		{
			return 28;
		}
		return ArrayYearDay[month];
	}
	void Print()
	{
		cout << _year << "-" << _month << "-" << _day<<endl;
	}
	Date countYearMonthDay(int year,int day)
	{
	
	}
private:
	int _year;
	int _month;
	int _day;
};
int main()
{
	Date d1(2024, 11, 29);
	
	return 0;
}


//class A
//{
//public:
//	A(int a = 0)
//		:_a(a)
//	{
//		cout << "A():" << endl;
//	}
//	~A()
//	{
//		cout << "~A():" << endl;
//	}
//private:
//	int _a;
//};
//int main()
//{
//	A* p1 = (A*)operator new(sizeof(A));
//	new(p1)A(10);
//
//	p1->~A();
//	delete p1;
//	return 0;
//}